﻿using System;
using System.Reflection;

namespace BingoRedis
{
	public class RedisInit
	{
		public static bool Init()
		{
			////类全名 包括命名空间    
			var name = MethodBase.GetCurrentMethod().DeclaringType?.FullName ?? "";

			try
			{
				RedisHelper redis = new RedisHelper(0);
				if (redis.GetDatabase() == null)
				{
					return false;
				}
				return true;
			}
			catch (Exception e)
			{
				return false;
			}

		}

	}
}
